package com.cetc39.service.impl;

import java.util.List;
import com.cetc39.bean.ProjectField;
import com.cetc39.dao.ProjectFieldDao;
import com.cetc39.service.ProjectFieldService;

public class ProjectFieldServiceImpl implements ProjectFieldService {

	private ProjectFieldDao projectFieldDao;
	
	@Override
	public void add(ProjectField pf) {
		projectFieldDao.save(pf);
	}

	@Override
	public void update(ProjectField pf) {
		projectFieldDao.update(pf);
	}

	@Override
	public void delete(int id) {
		projectFieldDao.delete(id);
	}

	@Override
	public List<?> findAll() {
		return projectFieldDao.findAll();
	}

	@Override
	public ProjectField findById(int id) {
		return projectFieldDao.findById(id);
	}

	public void setProjectFieldDao(ProjectFieldDao projectFieldDao) {
		this.projectFieldDao = projectFieldDao;
	}

}
